package com.bangdream.michelia.view.adapter;



import com.bangdream.michelia.R;
import com.bangdream.michelia.entity.MessageBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

/**
 * Created by zhouyi on 2018/3/25.
 */

public class MessageAdapter extends BaseQuickAdapter<MessageBean,BaseViewHolder> {
    public MessageAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, MessageBean item) {
        helper.setText(R.id.tvTitle, item.getTitle()+"");
        helper.setText(R.id.tvContent, item.getContent()+"");
        helper.setText(R.id.tv_time, item.getReadDate()+"");
//        Glide.with(mContext).load(item.getFace())
//                .apply(options)
//                .into((ImageView) helper.getView(R.id.yueqi_img));
    }
}
